#include "point.h"
#include <cmath>
Point::Point(){
    x = y =0;
}
Point::Point( double a, double b){
    x = a;
    y = b;
}
Point::Point( const Point &p){
    x = p.x;
    y = p.y;
}
double Point::getX() const{
    return x;
}
double Point::getY() const{
    return y;
}
double Point::dist( const Point &p){
    return sqrt((x - p.x)*(x - p.x) + (y - p.y)*(y - p.y));
}
void Point::set(double a, double b){
    x = a;
    y = b;
}